package com.pwt.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author dw
 * @version 1.0.0
 * @date 2021/9/30
 */
@Data
@Schema(description = "树形返回模型")
public class TreeModel {

    @Schema(description = "主键id")
    private Integer  id;

    @Schema(description = "编号")
    private String number;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "父id")
    private Integer pid;

    @Schema(description = "下一级")
    private List<TreeModel>  children;

}
